﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/BodyMasterPage.Master"
   CodeBehind="wfPerHistorial.aspx.cs" Inherits="RH.wfPerHistorial" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
   <base target="_self" />
   <script type="text/javascript">
      window.onload = function () {
         this.ResizeGrid();
         this.MessageOnPostback();
      }

      function ResizeGrid() {
         internalGridResize("<%= grdList.ClientID %>");
      }

      function panelOnUpdating() {
         updatePanelAnimationUpdating();
      }

      function panelOnUpdated() {
         ResizeGrid();
         updatePanelAnimationUpdated();
      }
   </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
   <asp:UpdatePanel ID="UpdatePanel1" runat="server">
      <ContentTemplate>
         <div class="DataHeader">
         </div>
         <div class="DataDetail">
            <esd:esdGridView CssClass="esdGridView" ID="grdList" runat="server" ScrollWidth="100%"
               Width="100%" ShowHeaderWhenEmpty="True" AutoGenerateColumns="False" DataKeyNames="nuSecuen">
               <Columns>
                  <asp:BoundField DataField="nuSecuen" HeaderText="Codigo"></asp:BoundField>
                  <asp:BoundField DataField="idEstado" HeaderStyle-CssClass="hideDataGridColumn" ItemStyle-CssClass="hideDataGridColumn">
                  </asp:BoundField>
                  <asp:BoundField DataField="dsEstado" HeaderText="Estado"></asp:BoundField>
                  <asp:BoundField DataField="idUser" HeaderStyle-CssClass="hideDataGridColumn" ItemStyle-CssClass="hideDataGridColumn">
                  </asp:BoundField>
                  <asp:BoundField DataField="dsUser" HeaderText="Usuario Sys"></asp:BoundField>
                  <asp:BoundField DataField="feAccion" HeaderText="Fecha"></asp:BoundField>
                  <asp:BoundField DataField="dsObservacion" HeaderText="Observacion"></asp:BoundField>
               </Columns>
               <EmptyDataTemplate>
                  <div id="gridempty">
                     <asp:Image ID="imgEmpty" runat="server" ImageUrl="../Images/Controls/Attention.png" />
                     &nbsp;No existen registros para esta solicitud.
                  </div>
               </EmptyDataTemplate>
            </esd:esdGridView>
         </div>
      </ContentTemplate>
   </asp:UpdatePanel>
   <ajax:UpdatePanelAnimationExtender ID="upae" BehaviorID="animation" runat="server"
      TargetControlID="updatePanel1">
      <animations>
        <OnUpdating>
        <Parallel duration="0.5">
            <ScriptAction Script="panelOnUpdating();" />  
        </Parallel>
        </OnUpdating>
        <OnUpdated>
        <Parallel duration="0.5">
            <ScriptAction Script="panelOnUpdated();" /> 
        </Parallel> 
        </OnUpdated>
    </animations>
   </ajax:UpdatePanelAnimationExtender>
   <div id="updateProgressDiv" class="updateProgress" style="display: none">
      <table width="100%">
         <tr>
            <td valign="middle">
               <img src="../Images/Controls/Loading.gif" />
            </td>
            <td valign="middle">
               <span class="updateProgressMessage">Cargando ...</span>
            </td>
         </tr>
      </table>
   </div>
</asp:Content>
